package com.ruoyi.accountant.domain.other;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SingleStatusResult {
    private String reasonName; // 原因名称
    private BigDecimal money; // 金额
    private String currencyName; // 币种名称

    private List<SingleStatusResult> list = new ArrayList<>(); // 金额和币种类型

    public void add(SingleStatusResult singleStatusResult) {
        list.add(singleStatusResult);
    }
}
